<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('tasks', function (Blueprint $table) {
                    $table->increments('id');
                    $table->char('char', 1)->unique();
                    $table->tinyInteger('status')->default(0);   //状态,0为未处理,1为处理成功,2为处理失败
        //            $table->timestamps();
                });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
                Schema::drop('tasks');
    }
};
